﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="ListAccountsWaitingVIP.aspx.cs" Inherits="Admin_ListAccounts" Title="Accounts Waiting Become VIP" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="content_main" class="clearfix">
        <div id="main_panel_container" class="left">
            <div id="dashboard">
                <h2 class="ico_mug">
                    List Accounts Waiting become V.I.P</h2>
                <asp:GridView ID="grdListAccount" CssClass="yui" Width="100%" runat="server" AutoGenerateColumns="False"
                    OnRowDataBound="grdListAccount_RowDataBound" AllowPaging="True" OnPageIndexChanging="grdListAccount_PageIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="IDAcc" HeaderText="ID" >
                            <ItemStyle HorizontalAlign="Center" Width="35px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Name">
                            <ItemTemplate>
                                <asp:Label ID="lblName" runat="server" Text='<%#Eval("FirstName") + " " + Eval("LastName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:HyperLinkField DataNavigateUrlFields="IDAcc" DataTextField="UsernameAcc" HeaderText="Username"
                            DataNavigateUrlFormatString="~/Admin/Account.aspx?IDAcc={0}" />
                        <%--<asp:TemplateField HeaderText="Type Account">
                            <ItemTemplate>
                                <asp:Label ID="lblTypeAcc" runat="server" Style="font-weight: bold"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                        <asp:TemplateField HeaderText="Date Expiry">
                            <ItemTemplate>
                                <asp:Label ID="lblDateExpiry" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="TypeAccName" HeaderText="Type" />
                        <asp:TemplateField HeaderText="View Album">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnUpdate" runat="server" ToolTip="View Album" CommandName="Confirm"
                                    OnClick="btnUpdate_Click" CommandArgument='<%# Eval("IDAcc") %>' ImageUrl="~/Admin/img/viewAlbum.png" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="35px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Reset Password">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnReset" runat="server" ToolTip="View Album" CommandName="Confirm"
                                    OnClick="btnReset_Click" CommandArgument='<%# Eval("IDAcc") %>' ImageUrl="~/Admin/img/viewAlbum.png" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="35px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Accept VIP">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnVIP" runat="server" ToolTip="Become VIP Membership" CommandName="VIP"
                                    OnClick="btnReset_Click" CommandArgument='<%# Eval("IDAcc") %>' ImageUrl="~/Admin/img/viewAlbum.png" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="35px" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="clsGrdHeader" />
                    <RowStyle CssClass="clsGrdRow" />
                    <AlternatingRowStyle CssClass="clsGrdAlternateRow" />
                    <PagerStyle CssClass="clsPage" />
                </asp:GridView>
            </div>
            <!-- end #dashboard -->
        </div>
        <div id="sidebar" class="right">
            <h2 class="ico_mug">
                Category</h2>
            <ul id="menu">
                <li><a href="#" class="ico_posts">Account Infomation</a>
                    <ul>
                        <li><a href="ListAccounts.aspx">List All Accounts </a></li>
                        <li><a href="ListAccountsVIP.aspx">List Accounts V.I.P</a></li>
                        <li><a href="UpdateLogo.aspx">List Accounts Free</a></li>
                        <li><a href="ListAccountsWaitingVIP.aspx">List Accounts Waiting V.I.P</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <!-- end #sidebar -->
    </div>
</asp:Content>
